package com.tsll.controller;

import com.tsll.entity.SysOperLog;
import com.tsll.service.impl.SyOperLogServiceImpl;
import com.tsll.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sysoper")
public class SysOperLogContorller {
    @Autowired
    private SyOperLogServiceImpl service;
    // 通过@RequestMapping注解映射"/select/{current}/{pageSize}"请求
    @RequestMapping("/select/{current}/{pageSize}")
    // 通过@PathVariable注解获取路径变量current和pageSize
    public Result insertOperlog(@PathVariable Integer current, @PathVariable Integer pageSize){
        // 调用service的findAll方法，传入current和pageSize参数，返回结果
        return service.findAll(current,pageSize);
    }
}
